package com.ruoyi.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户投诉对象 bus_customer_complaints
 *
 * @author xiaochen
 * @date 2022-11-30
 */
@TableName("bus_customer_complaints")
public class BusCustomerComplaints extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    @TableField("content")
    private String content;

    /** 投诉类型（0=辱骂，1=骚扰，2=引导私下交易，3=其他） */
    @Excel(name = "投诉类型", readConverterExp = "0==辱骂，1=骚扰，2=引导私下交易，3=其他")
    @TableField("type")
    private Integer type;

    /** 处理结果 */
    @Excel(name = "处理结果")
    @TableField("result")
    private String result;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("handle_time")
    private Date handleTime;

    /** 投诉人id */
    @Excel(name = "投诉人id")
    @TableField("complainant_id")
    private Long complainantId;

    /** 投诉人姓名 */
    @Excel(name = "投诉人姓名")
    @TableField("complainant_name")
    private String complainantName;

    /** 投诉人联系方式 */
    @Excel(name = "投诉人联系方式")
    @TableField("phone")
    private String phone;

    /** 被投诉人 */
    @Excel(name = "被投诉人")
    @TableField("respondent_id")
    private Long respondentId;

    /** 被投诉人姓名 */
    @Excel(name = "被投诉人姓名")
    @TableField("respondent_name")
    private String respondentName;

    /** 状态（0=待处理，2=已处理，3=作废） */
    @Excel(name = "状态", readConverterExp = "0==待处理，2=已处理，3=作废")
    @TableField("status")
    private Integer status;

    /** 创建人id */
    @Excel(name = "创建人id")
    @TableField("creator_id")
    private Long creatorId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("created_time")
    private Date createdTime;

    /** 更新人id */
    @Excel(name = "更新人id")
    @TableField("updator_id")
    private Long updatorId;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("updated_time")
    private Date updatedTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setResult(String result)
    {
        this.result = result;
    }

    public String getResult()
    {
        return result;
    }
    public void setHandleTime(Date handleTime)
    {
        this.handleTime = handleTime;
    }

    public Date getHandleTime()
    {
        return handleTime;
    }
    public void setComplainantId(Long complainantId)
    {
        this.complainantId = complainantId;
    }

    public Long getComplainantId()
    {
        return complainantId;
    }
    public void setComplainantName(String complainantName)
    {
        this.complainantName = complainantName;
    }

    public String getComplainantName()
    {
        return complainantName;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setRespondentId(Long respondentId)
    {
        this.respondentId = respondentId;
    }

    public Long getRespondentId()
    {
        return respondentId;
    }
    public void setRespondentName(String respondentName)
    {
        this.respondentName = respondentName;
    }

    public String getRespondentName()
    {
        return respondentName;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatorId(Long updatorId)
    {
        this.updatorId = updatorId;
    }

    public Long getUpdatorId()
    {
        return updatorId;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("type", getType())
            .append("result", getResult())
            .append("handleTime", getHandleTime())
            .append("complainantId", getComplainantId())
            .append("complainantName", getComplainantName())
            .append("phone", getPhone())
            .append("respondentId", getRespondentId())
            .append("respondentName", getRespondentName())
            .append("status", getStatus())
            .append("creatorId", getCreatorId())
            .append("createdTime", getCreatedTime())
            .append("updatorId", getUpdatorId())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
